package com.it.service;

import com.github.pagehelper.PageInfo;
import com.it.bean.Role;
import com.it.dto.RoleDTO;
import com.it.page.PageQuery;
import com.it.vo.RoleVo;

import java.util.List;

public interface RoleService {
    PageInfo<RoleVo> page(PageQuery<RoleDTO> pageQuery);

    List<Role> list(Role role);

    void save(Role role);

    void delete(Long id);

    void authorized(Long roleId, List<Long> menuIds);

    List<Long> auths(Long roleId);
}
